@extends('layouts.master')

@section('content')
     <section id="sidebar" class="col-lg-4 col-lg-push-1">
       <div id="signinbox"> 

     <strong><h1>Create a new user</h1></strong>
   
<hr>
    @if($errors->all())
     <div class="alert alert-danger">  
     <ul>
      @foreach($errors->all() as $error)
         <li>{{ $error }}</li>
      @endforeach
   </ul>
   </div>
   @endif

     <table class="col-lg-12">
    {{ Form::open(array('url'=>'postCreate','method' => 'post',"role"=>"form","class"=>"form-signin")) }}
   
<tr><td colspan="2">
     {{ Form::label('email', 'Select your School') }}
     </td>
     </tr>
    <tr><td colspan="2">    
        <select id="schoolname" class="selectpicker col-lg-3 form-control"  name="schoolname">
        @foreach ($networks as $network)
      <option value="{{$network->domain}}">{{$network->school}}</option>
      @endforeach
      </select>
   </td></tr>
   	 <tr><td  width="50%" >
     {{ Form::text('email',  Input::old('email')?Input::old('email'):'', array('class'=>'form-control col-lg-3', 'placeholder'=>' Email address')) }}
     
     </td><td width="50%">    
     <div class="text-center"> <strong> <p id="txt_schoolname">@gmail.com</p></strong></div>
		 
   </td></tr>
    <tr><td colspan=2>
	{{ Form::password('password', array('class'=>'form-control col-lg-6', 'placeholder'=>trans('messages.Password'))) }}
    </td></tr>
	<tr><td colspan=2>
	{{ Form::password('password_again', array('class'=>'form-control col-lg-6', 'placeholder'=>trans('messages.RePassword'))) }}
</td></tr>
    <tr><td colspan=2>

    {{ Form::submit('Sign Up', array('class'=>'submit btn btn-primary flex-table-btn js-submit')) }}
    </td></tr>
      </table>
    
          {{ Form::close() }}
          
    </div>
    <br><br><br>
   
   
    </div>
     <br><br><br><br><br><br><br><br><br><br>
    </section>
@stop